Latest Questions

How to randomize shapes and colors using turtle python?

Can someone please help me with drawing random shapes in random colors using turtle python?

React.js URL changes but view does not change

I am new to React.js. I am using React.js 18.0.0. I am developing simple login application. Here I am facing problem in routing. When I click on forget password

vue.js how to create a route poiting to a XML file instade of .vue

I'm trying to figure out how can I create a route pointing to a xml file using vue-router. Actually I need this because I need to set a sitemap.xml at Google se

Is there an API for accessing helix fi gateway 2?

I'm trying to see if I can integrate Helix Fi Gateway 2 as a routeur into my home assistant setup. I've not seen an integration component, and figured if an API

Is bitwise complement of (n-1) equals to (-n)

The following code prints the two odd occuring numbers in an array: #include <iostream> using namespace std; int main(){ int n; cin>>n; int

How to run Django admin site on Android

This is what am facing with with Django on my Android I'm using Pydroid on my phone. Python and Django are fully functional. But when I try to run Django admin

Distinct and List of other column in postgresql

I am using postgres DB and i have table with two column name and sal . name Sal Raunak 10000 Raunak 5000 Rahul 500 Raunak 300

SQR - how to use FROM [dynamic table name} within BEGIN-SELECT?

I have to create an SQR that generates a list of EEIDs, if there were any changes to the Pension data in the past day. The SQR compiles and works perfectly when

Is it possible to write css directly inside html tags when convert pdf to html?

I'd like make script to edit pdf file, so the solution that I found is to convert pdf to html then edit the html content with WYSIWYG ckeditor and then convert

Why can't I save a custom field to another table?

I'm trying to follow this tutorial: https://simpleisbetterthancomplex.com/tutorial/2018/01/18/how-to-implement-multiple-user-types-with-django.html concerning h

source to source transformation

I would like to transform input.js to output.js using string manipulation in python here is input.js let k=document.createElement("div"); k.innerHTML='<style

React Context State Not Updating

My Context: type Props = { children: React.ReactNode; }; interface Context { postIsDraft: boolean; setPostIsDraft: Dispatch<SetStateAction<boolean&

Array only fills on first iteration of loop

I have a results table with multiple results for multiple samples, and a sample list array containing each unique sample reference value in the results table. I

Caching JSON data on android: Room vs file

An app retrieves JSON formatted strings from a network and parses them for presentation to the user. What would be the best way to cache the data in case it's n

How to write python foundry's code workbook

How to write this sql code in Foundry's python code workbook SELECT DISTINCT excl_rsn_id FROM exclusion_current_1;

I would like to change my Items Page from using CollectionView to ListView in xamarin.forms but I am having issues?

The above header refers. I would like to make this change so I can implement expanding lists (whereby my some of my list of items could have sub-items that can

Azure Function disabled setting "user" field to HTTP request object on the 26th of April 2022

(!) Issue cannot be reproduced locally. Azure Function Version ~4 Node Version 14.18.1 Creating a simple HTTP triggered Azure Function and setting just two simp

MLFlow Webhook calling Azure DevOps pipeline - retrieve body

I am using the MLFlow Webhooks , mentioned here. I am using that to queue an Azure Devops Pipeline. However, I can't seem to to find a way to retrieve the paylo

What's the best way to rate limit a spark application

I have an application does the following: Reads URLs from a Hive table Creates HTTP requests from those URLs, hits a server with them and parses the responses W

apitest.cybersource.com new key failure

All new keys created in https://ebc2test.cybersource.com/ebc2/ result in failure response: { "response": { "rmsg": "Authentication Failed" } } Reproduction Step

Is it possible to make the LazyVGrid header have the same appearance as a List header

Goal My goal is to make the LazyVGrid header look exactly the same as the List header. When utilizing the Grid view, the header is transparent and shows the con

Linear Probing - Collision Troubleshooting when Inserting Element

I'm trying to create a Linear Probing program. So far, I'm stuck trying to create an insertElement function. The idea is that as key values are being inserted i

SwiftUI Firebase Pagination Order Users by id

I have a page for users in a grid view and would like to paginate the view to reduce bandwidth when a user scrolls. For now i know how to paginate a feed view b

Retrieving a zip file from a web site using Excel VBA

I'm trying to download a zip file from a public web site http://serviciosede.mineco.gob.es/indeco/BDSICE/homebdsice.aspx. To download the file this site execute

What kind of query optimization can be expected?

tl;dr; Will the query optimizer be able to optimize the max calls? select id , max(case when this and that11 and that12 then 1 else 0 end) name1 , max(c

htaccess ErrorDocument not working with when removing php extension

.htaccess # Security Headers <IfModule mod_headers.c> Header set X-XSS-Protection "1; mode=block" Header set X-Frame-Options "SAMEORIGIN" Head

Using SELECT DISTINCT to retrieve nearly identical array values in PGSQL

In an app that I am currently developing users are allowed to locations identified, amongst other things by their latitude/longitude coordinates. The location e

cannot infer V: infer type parameter from constraint implementation

I have an interface in go which wants to support saving and loading results in different databases and I want to support different types. package cfgStorage ty

How to create a Dataframe from multiple dictionaries

I have a little issue with my the data I have (multiple dictionaries) to process and create a Dataframe from them. This what the data look like: print(data) 0

How do I remove the links from product names in WooCommerce order emails?

When a customer receives their woocommerce order completed email, there are 2 columns. In the left column is the product name and in the right column is the dow